package io.renren.modules.slideshow.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * 
 * 
 * @author ÑîË§
 * @email 
 * @date 2018-11-09 21:17:52
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SlideshowEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//轮播图ID
	private Integer slideshowid;
	//轮播图标题
	@NotBlank(message="轮播图标题不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String title;
	//轮播图文字内容
	private String content;
	//轮播图URL
	@NotBlank(message="轮播图片未上传", groups = {AddGroup.class, UpdateGroup.class})
	private String slideshowurl;
	//排序
	private Integer slideshoworder;
	//创建时间
	private Date createdate;
	//更新时间
	private Date updatedate;
	//是否软删除
	@NotNull(message="软删除不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Integer isdel;

	/**
	 * 设置：轮播图ID
	 */
	public void setSlideshowid(Integer slideshowid) {
		this.slideshowid = slideshowid;
	}
	/**
	 * 获取：轮播图ID
	 */
	public Integer getSlideshowid() {
		return slideshowid;
	}
	/**
	 * 设置：轮播图标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * 获取：轮播图标题
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * 设置：轮播图文字内容
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * 获取：轮播图文字内容
	 */
	public String getContent() {
		return content;
	}
	/**
	 * 设置：轮播图URL
	 */
	public void setSlideshowurl(String slideshowurl) {
		this.slideshowurl = slideshowurl;
	}
	/**
	 * 获取：轮播图URL
	 */
	public String getSlideshowurl() {
		return slideshowurl;
	}
	/**
	 * 设置：排序
	 */
	public void setSlideShowOrder(Integer slideshoworder) {
		this.slideshoworder = slideshoworder;
	}
	/**
	 * 获取：排序
	 */
	public Integer getSlideShowOrder() {
		return slideshoworder;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreatedate() {
		return createdate;
	}
	/**
	 * 设置：更新时间
	 */
	public void setUpdatedate(Date updatedate) {
		this.updatedate = updatedate;
	}
	/**
	 * 获取：更新时间
	 */
	public Date getUpdatedate() {
		return updatedate;
	}
	/**
	 * 设置：是否软删除
	 */
	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}
	/**
	 * 获取：是否软删除
	 */
	public Integer getIsdel() {
		return isdel;
	}
}
